#include <QtGui/QApplication>
#include <QtGui/QMessageBox>
#include "Widget.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    w.show();

    if (argc > 1) {
        if (w.loadList(argv[1]) == false)
            QMessageBox::critical(&w, "Error", "Calenton can not load the file.", QMessageBox::Ok, QMessageBox::Ok);;
    }

    return a.exec();
}
